<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/webpage/include/taglib.jsp"%>
<%@ include file="/webpage/include/weChatHead.jsp"%>
<html>
<head>
<title>动态添加</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link href="${ctxStatic}/plugin/jquery-weui/lib/weui.min.css" type="text/css" rel="stylesheet" />
<link href="${ctxStatic}/plugin/jquery-weui/css/jquery-weui.css" type="text/css" rel="stylesheet" />

<script type="text/javascript">
	$(document).ready(function() {
	});
</script>
<script type="text/javascript">
    $(document).ready(function() {
        $("#inputForm").validate({
            submitHandler: function(form){
                jp.loading();
                form.submit();
            },
            errorContainer: "#messageBox",
            errorPlacement: function(error, element) {
                $("#messageBox").text("输入有误，请先更正。");
                if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
                    error.appendTo(element.parent().parent());
                } else {
                    error.insertAfter(element);
                }
            }
        });

    });
</script>
<!--[if IE 6]> 
<style type="text/css">
html{overflow:hidden;}
body{height:100%;overflow:auto;}
#inbottom{position:absolute;}
</style>
<![endif]-->
</head>
<body >
		<sys:message content="${message}" />
		<form:form id="inputForm" modelAttribute="projectDynamic"
			action="${ctx}/project/dynamic/projectDynamic/weChatSave"
			method="post" class="form-horizontal">
			<form:hidden path="projectInfo.id" />
			<form:hidden path="id" />
			<input id="stage" name="stage" type="hidden"/>
			<sys:message content="${message}" />
			<div class="weui_cells weui_cells_form">
			<div class="weui_cell">
       			<div class="weui_cell_hd"><label for="name" class="weui_label">项目阶段</label></div>
       	 		<div class="weui_cell_bd weui_cell_primary">
          			<input class="weui_input required" id="stages" type="text">
        		</div>
      		</div>
			<div class="weui_cells_title">内容</div>
			<div class="weui_cells weui_cells_form">
				<div class="weui_cell">
					<div class="weui_cell_bd weui_cell_primary">
						<form:textarea path="content" class="weui_textarea required" placeholder="请输入内容" rows="5"></form:textarea>
						<div class="weui_textarea_counter">
							<span>1</span>/500
						</div>
					</div>
				</div>
			</div>
			</div>
			<div class="wrapper wrapper-content">
				<button class="weui_btn weui_btn_primary" data-loading-text="正在提交...">提 交</button>
			</div>
		</form:form>

<!-- body 最后 -->
<script src="${ctxStatic}/plugin/jquery-weui/js/jquery-weui.js" type="text/javascript"></script>
<script src="${ctxStatic}/plugin/jquery-weui/js/jquery-weui.min.js" type="text/javascript"></script>

<!-- 如果使用了某些拓展插件还需要额外的JS -->
<script src="${ctxStatic}/plugin/jquery-weui/js/swiper.min.js" type="text/javascript"></script>
<script src="${ctxStatic}/plugin/jquery-weui/js/city-picker.min.js" type="text/javascript"></script>
<script>
  $("#stages").select({
    title: "选择项目阶段",
    items: [ {
      	title: "方案研究",
      	value: "1",
    	},
      {
        title: "预可",
        value: "2",
      },
      {
        title: "工可",
        value: "3",
      },
      {
        title: "初步设计",
        value: "4",
      },
      {
        title: "施工图设计",
        value: "5",
      },
      {
        title: "后期服务",
        value: "6",
      }],
      onChange: function(d) {
          $("#stage").val(d.values);
      }
  });
</script>
</body>
</html>


